import request from "@/utils/request";
// 获取当前登录用户
export const userInfoService = () => request.get('/api/user/userInfo.do')
// 用户登录
export const userLogin =(obj)=>request.get("/api/user/login.do",obj)
// 用户列表：使用条件分页查询
export const userList = (obj) => request.get("/api/user/list.do", obj)
//添加用户
export const userInsert = (obj) => request.post("/api/user/insert.do", obj, {
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
})
//删除用户
export const deleteUser = (obj) => request.post("/api/user/delete.do", obj,{
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
})
//更新用户
export const updateUser = (obj) => request.post("/api/user/update.do", obj,{
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
})

